//
//  sanHomeViewController.m
//  sanFsports
//
//  Created by mac on 16/11/20.
//  Copyright © 2016年 sanAiFuSport.com. All rights reserved.
//

#import "sanHomeViewController.h"
#import "sanFanYuanController.h"
@interface sanHomeViewController ()

@end

@implementation sanHomeViewController
#pragma mark-- 实现按钮点击

- (void)btnClick
{
    sanFanYuanController *pVc = [[sanFanYuanController alloc]init];
    
    [self.navigationController pushViewController:pVc animated:YES];
    
    
    
}
#pragma mark-- 搭建界面
- (void)viewDidAppear:(BOOL)animated{
    
    [super viewDidAppear:YES];
    
    self.hidesBottomBarWhenPushed = YES;
    
}
- (void)viewDidDisappear:(BOOL)animated{
    
    [super viewDidDisappear:YES];
    
    self.hidesBottomBarWhenPushed = NO;
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
    self.navigationItem.title = @"首页";
    
    //mark-- 添加加好按钮
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeContactAdd];
    btn.center = self.view.center;
    [self.view addSubview:btn];
    
    self.hidesBottomBarWhenPushed = YES;
    
    //监听按钮时间
    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];

}


@end
